#include "main_header.h"

int init_all(Main_thread *m_thread,int workNum){
    initArr(&m_thread->arr,workNum);
    init_queue(&m_thread->queue);
    pthread_mutex_init(&m_thread->mutex,NULL);
    pthread_cond_init(&m_thread->cond,NULL);
    return 0;
}
